package com.benmei.ntlive.vo;

import com.benmei.ntlive.entity.Member;
import com.benmei.ntlive.entity.Teacher;

/**
 * Created by Peter on 2017/9/7.
 */
public class User {
    private Integer id;
    private Integer agora_uid;
    private String name;
    private String avatar;//头像
    private String token;
    private Integer clientOsType;
    private String userRole;// student , teacher

    public User(Member member, Integer clientOsType, Integer agora_uid) {
        this.agora_uid = agora_uid;
        this.id = member.getMemb_id();
        this.name = member.getMemb_name();
        this.avatar = member.getMemb_head_portrait();
        this.token = member.getToken();
        this.clientOsType = clientOsType;
        this.userRole = "student";
    }

    public User(Teacher teacher, Integer clientOsType, Integer agora_uid) {
        this.agora_uid = agora_uid;
        this.id = teacher.getTea_id();
        this.name = teacher.getTea_name();
        this.avatar = teacher.getTea_head_portrait();
        this.token = teacher.getToken();
        this.clientOsType = clientOsType;
        this.userRole = "teacher";
    }

    public Integer getAgora_uid() {
        return agora_uid;
    }

    public void setAgora_uid(Integer agora_uid) {
        this.agora_uid = agora_uid;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public Integer getClientOsType() {
        return clientOsType;
    }

    public void setClientOsType(Integer clientOsType) {
        this.clientOsType = clientOsType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

}
